//
// Created by lyc on 2024/5/5.
//
#include"iostream"
#include"string"
using namespace std;
class product{
private:
    string m_name;//名称
    double m_price;//单价
    string m_detail;//描述
    int m_stock;//库存
public:
    product(string name,double price,string detail,int stock){
        this->m_name = name;
        this->m_price = price;
        this->m_detail = detail;
        this->m_stock = stock;
    }
    string getName();
    string getPrice();
    string getDetail();
    string getStock();
};

string product::getName() {
    return m_name;
}
string product::getPrice() {
    string price = to_string(m_price);
    return price;
}
string product::getDetail() {
    return m_detail;
}
string product::getStock() {
    string stock = to_string(m_stock);
    return stock;
}
